#include <tsin/library/TouhouSmallBulletSeries.hpp>

#include <tsin/library/BuiltinImages.hpp>

using namespace tsin;

const char *TouhouSmallBulletSeries::getImagePath()
{
        return RES_PREFIX "bullet/etama.png";
}

int TouhouSmallBulletSeries::getSizeX()
{
        return 16;
}

int TouhouSmallBulletSeries::getSizeY()
{
        return 16;
}

int TouhouSmallBulletSeries::getCoordX()
{
        switch(color) {
        case BLACK:
                return 0;
        case RED:
                return 32;
        case PINK:
                return 64;
        case BLUE:
                return 96;
        case CYAN:
                return 128;
        case GREEN:
                return 160;
        case YELLOW:
                return 208;
        case ORANGE:
                return 224;
        case WHITE:
                return 240;
        case DARK_RED:
                return 16;
        case DARK_PINK:
                return 48;
        case DARK_BLUE:
                return 80;
        case DARK_CYAN:
                return 112;
        case DARK_GREEN:
                return 144;
        case DARK_YELLOW:
                return 192;
        }
        return 0;
}

int TouhouSmallBulletSeries::getCoordY()
{
        switch(shape) {
        case TRIANGLE:
                return 224;
        case CIRCLE_WITH_RING:
                return 208;
        case CIRCLE:
                return 192;
        case ELLIPSE:
                return 176;
        case ARROW:
                return 160;
        case ICE:
                return 144;
        case SPELLCARD:
                return 128;
        case DRUG:
                return 112;
        case DARK_RICE:
                return 96;
        case STAR:
                return 80;
        }
        return 0;
}
